package com.feeyo.monitor.service;


import com.feeyo.monitor.domain.User;
import com.feeyo.monitor.utils.UserAlreadyExistException;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface UserService {
	public int insert(User record);
    public int insertSelective(User record);
	public User selectByPrimaryKey(String id);
    int updateDeleteStatus(String id);
	List<Map> login(Map param);
	List<Map> tokenLogin(String token);
    int updateByPrimaryKeySelective(User record);
    int updatePassword(Map param);
    List<Map> selectByUserName(String userName);
    PageInfo selectByPage(Map param, int pageNumber, int pageSize);

    PageInfo selectByUserAndPage(Map param, int pageNumber, int pageSize);
}
